package com.xuecheng.manage_cms.service;

import com.xuecheng.framework.domain.cms.CmsPage;
import com.xuecheng.framework.domain.system.SysDictionary;
import com.xuecheng.manage_cms.dao.SysDictRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Optional;

/**
 * @author Sam
 * @version 1.0
 * @create 2019/6/4 16:27
 **/
@Service
public class SysDictService {
    @Autowired
    SysDictRepository sysDictRepository;

    public SysDictionary getBydType(String dType) {
        SysDictionary byType = sysDictRepository.getBydType(dType);
        return byType;
    }
}
